---
description: The ./ prefix is standard syntax for relative URLs; don't depend on Angular's current ability to do without that prefix.
descriptionDetails: 'See more at https://angular.io/styleguide#style-05-04.'
rationale: 'A component relative URL requires no change when you move the component files, as long as the files stay together.'
ruleName: relative-url-prefix
options: null
optionsDescription: Not configurable.
type: maintainability
typescriptOnly: true
layout: rule
title: 'Rule: relative-url-prefix'
optionsJSON: 'null'
---